The Dreamweaver JavaScript API > JavaScript Debugger functions > dreamweaver.debugDocument() |
![]() ![]() ![]() |
Availability
Dreamweaver 4.0
Description
Creates the debug version of the current document and starts the debugger. This function can be used only with one of the browsers for which Dreamweaver supports JavaScript debugging (see dreamweaver.getDebugBrowserList()). This function does not prompt the user if it cannot determine the browser type. If syntax errors or warnings occur, a Results window is opened to display the messages. If no errors occur, the debug version of the HTML document appears in the specified browser. If warnings occur, but no errors, the Results window appears and debugging begins.
The creation of the debug version is implemented with a call to dom.instrumentDocument()
using the one of the default instrumentation modules. The debug version of the document is temporary and is deleted the next time the debugger starts or when Dreamweaver exits.
Arguments
fileName
, {browserName}
![]() |
fileName is the name of the file to be opened, expressed as an absolute URL. |
![]() |
browserName is optional; it specifies the name of the target browser as defined in the Preview settings in Browser Preferences. It can also be 'primary' or 'secondary'. If omitted, the primary browser is used by default. |
Returns
Nothing.
![]() ![]() ![]() |